<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link href="css/cmxform.css" rel="stylesheet" />
		<link href="css/cmxformTemplate.css" rel="stylesheet" />
		<link href="css/core.css" rel="stylesheet" />
		<link href="css/reset.css" rel="stylesheet" />
		<script src="js/jquery-3.6.1.js"></script>
		<script src="js/jquery.validate.js"></script>
		<style>
			#commentForm {
				width: 500px;
			}

			#commentForm label {
				width: 250px;
			}

			#commentForm label.error,
			#commentForm input.submit {
				margin-left: 253px;
			}

			#signupForm {
				width: 670px;
			}

			#signupForm label.error {
				margin-left: 10px;
				width: auto;
				display: inline;
			}

			#newsletter_topics label.error {
				display: none;
				margin-left: 103px;
			}
		</style>
		<script type="text/javascript">
			$(document).ready(function() {
				$('#commentForm').validate();
			})
		</script>
	</head>
	<body>
		<form class="cmxform" id="commentForm" method="get" action="">
			<fieldset>
				<legend>Please provide your name, email address (won't be published) and a comment</legend>
				<p>
					<label for="cname">Name (required, at least 2 characters)</label>
					<input id="cname" name="name" minlength="2" type="text" required>
				</p>
				<p>
					<label for="cemail">E-Mail (required)</label>
					<input id="cemail" type="email" name="email" required>
				</p>
				<p>
					<label for="curl">URL (optional)</label>
					<input id="curl" type="url" name="url">
				</p>
				<p>
					<label for="ccomment">Your comment (required)</label>
					<textarea id="ccomment" name="comment" required></textarea>
				</p>
				<p>
					<input class="submit" type="submit" value="Submit">
				</p>
			</fieldset>
		</form>

	</body>
</html>
